package com.ruoyi.project.qyxy.statistics.controller;

import com.ruoyi.project.qyxy.statistics.service.StatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * 企业信用数据统计
 */
@RestController
@RequestMapping("/statistics")
public class StatisticsController {

    @Autowired
    private StatisticsService statisticsService;

    /**
     * 获取企业数量统计信息
     * @return
     */
    @RequestMapping("/getZzStatistics")
    public List<Map> getZzStatistics(){
        return statisticsService.getZzStatistics();
    }

    /**
     * 得分企业统计
     * @return
     */
    @RequestMapping("/getOrgScoreSts")
    public List<Map> getOrgScoreSts(){
        return statisticsService.getOrgScoreSts();
    }
}
